import React from 'react'
import {
  StyleProp, ViewStyle,
} from 'react-native'
import RCModal, { IModalPropTypes } from './ModalView'

const Modal: React.FC<IModalPropTypes & { maskStyle? : StyleProp<ViewStyle>, style? : StyleProp<ViewStyle> }> = ({
  children, animationType = 'fade', ...props
}) => {
  return (
    <RCModal
      animationType={animationType}
      {...props}
    >
      {children}
    </RCModal>
  )
}
export default Modal
